<?php echo $this->doctype();?>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">

<head>
  <title><?php echo $this->translate('APP_NAME') . ' - ' . $this->id_page;?></title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <link rel="stylesheet" href="<?php echo STATIC_URL . '/css/main_facebook_timeline.css';?>" type="text/css" />
  
  <link rel="stylesheet" type="text/css" href="<?php //echo STATIC_URL . '/css/page.css'; ?>" />
  <link rel="stylesheet" type="text/css" href="<?php echo STATIC_URL . '/css/welcome_fanpage.css'; ?>" />
  
  <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
  <script type="text/javascript" src="<?php echo STATIC_URL . '/javascript/main.js';?>"></script>  
  <script type="text/javascript" src="<?php echo STATIC_URL . '/javascript/fanpage.js';?>"></script>
  <?php echo $this->social->render('initHead');?>

</head>
<body style="width: 100%" >
<?php echo $this->social->render('initBody');?>

<div class="page_container">
	<?php if ($this->social->isPageAdmin()): ?>			
		<div class="sm_admin_pannel">
			<div class="sm_admin_setting">
				<a href="<?php echo $this->social->url('/admin/index/config/id_page/' . $this->social->getIdPage());?>" title="Go to Admin" target="_blank" class="sm_admin_setting_text">
					Admin panel
				</a>
			</div>
            <div class="sm_paypal" style="float: right;">
				<?php echo $this->partial('header.phtml', 'payment', array('social' => $this->social)); ?>
			</div>
           
		</div>
	<?php endif; ?>
	<div class="ym_contents">
		<?php echo $this->layout()->content ?>
	</div>
</div>
<?php echo $this->partial('footer.phtml', 'payment', array('social' => $this->social)); ?>
<?php echo $this->social->render('autoResize'); ?>
<?php echo $this->social->render('endBody')?>
</body>
</html>